package cn.tx.erp.sys.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/1/22 18:10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultObj {
    private Integer code;
    private String msg;

    public static final ResultObj LOGIN_SUCCESS = new ResultObj(200,"登录成功！");
    public static final ResultObj LOGIN_ERROR = new ResultObj(-1,"用户名或密码错误！");
    public static final ResultObj LOGIN_ERROR_CODE = new ResultObj(-1,"验证码错误！");


    public static final ResultObj ADD_SUCCESS = new ResultObj(200,"添加成功");
    public static final ResultObj ADD_ERR = new ResultObj(-1,"添加失败");

    public static final ResultObj DELETE_SUCCESS = new ResultObj(200,"删除成功");
    public static final ResultObj DELETE_ERR = new ResultObj(-1,"删除失败");

    public static final ResultObj UPDATE_SUCCESS = new ResultObj(200,"更新成功");
    public static final ResultObj UPDATE_ERR = new ResultObj(-1,"更新失败");

    public static final ResultObj RESET_SUCCESS = new ResultObj(200,"重置成功");
    public static final ResultObj RESET_ERR = new ResultObj(-1,"重置失败");

    public static final ResultObj DIS_SUCCESS = new ResultObj(200,"分配成功");
    public static final ResultObj DIS_ERR = new ResultObj(-1,"分配失败");
}
